﻿import QtQuick 2.0
import "../components"

Item {
    property var spe;
    property int times;
    anchors.fill: parent
    Row{
        spacing: 15*dp
        CustomComboBox{
            title: "速度"
            textWidth: 38*dp
            editWidth: 160*dp
            model: ["高", "中", "低"]
            onCurrentText: {
                spe=text;
            }
        }

        LineEditor{
            title: "次数"
            textWidth: 38*dp
            editWidth: 160*dp
            intflag: true
            onTextChanged: {
                var inputValue = parseInt(getText());
                if (!isNaN(inputValue)) {
                    times = inputValue;
                }
            }
        }
        PushButton{
            title: "润脂测试"
            defaultMode1: true
            onReleased: {
                MACO.rkrzcs(spe,times)
            }
        }
        PushButton{
            title: "停止润脂"
            defaultMode2: true
            onReleased: {
                MACO.rktzrz()
            }
        }
    }
}
